package com.enjoy.cloud.spi;

import org.apache.dubbo.common.extension.ExtensionLoader;

public class SpiTest {
    public static void main(String[] args) {
        ExtensionLoader<Driver> extensionLoader = ExtensionLoader.getExtensionLoader(Driver.class);
        Driver myDriver = extensionLoader.getExtension("myDriver");
        System.out.println(myDriver.connect());
    }
}
